//
//  NWDIscoverModle.m
//  World
//
//  Created by lanou on 15/10/24.
//  Copyright © 2015年 小虫. All rights reserved.
//

#import "NWDIscoverModle.h"
#import "NWItemsModle.h"
@implementation NWDIscoverModle
- (instancetype)init
{
    self = [super init];
    if (self) {
        _itemsArray = [NSMutableArray arrayWithCapacity:0];
        
    }
    return self;
}

- (void)setValue:(id)value forKey:(NSString *)key
{
    if ([key isEqualToString:@"items"])
    {
        for (NSDictionary *dict in value)
        {
            NWItemsModle *modle = [[NWItemsModle alloc]init];
            [modle setValuesForKeysWithDictionary:dict];
            [self.itemsArray addObject:modle];
        }
    }else{
        [super setValue:value forKey:key];
    }
   
}


- (void)setValue:(id)value forUndefinedKey:(NSString *)key
{
    
}

@end
